package com.andy.blog.admin.service;

import com.andy.blog.admin.dto.MessageDTO;
import com.andy.blog.common.page.PageUtilsDTO;
import com.andy.blog.dal.vo.MessageVO;

import java.util.List;

/**
 * Created by andy on 2023/8/5 07:48
 */
public interface MessageBusService {

    /**
     * 新增
     */
    void addMessage(MessageVO messageVO);

    /**
     * 列表查询
     */
    List<MessageDTO> listMessage(MessageVO messageVO);

    /**
     * 分页接口
     */
    PageUtilsDTO<MessageDTO> selectPage(MessageVO messageVO);

    /**
     * 删除
     */
    void deleteById(Long id);
}
